/**
 * Created by vincent on 2017/10/12.
 */
moduleResource.factory('OldBadgeResource', function (CambioResource, $$CambioConfig) {
    return CambioResource($$CambioConfig.RESOURCE_URL + '/badge', {}, {
        queryPage: {
            url: $$CambioConfig.RESOURCE_URL + '/badge/queryBadgeList' + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        findById: {
            url: $$CambioConfig.RESOURCE_URL + '/badge/findById/:badgeId',
            method: 'GET'
        },
        findByKey: {
            url: $$CambioConfig.RESOURCE_URL + '/badge/findByKey',
            isArray: true,
            method: 'POST'
        },
        add: {
            url: $$CambioConfig.RESOURCE_URL + '/badge/add',
            method: 'POST'
        },
        update: {
            url: $$CambioConfig.RESOURCE_URL + '/badge/update',
            method: 'PUT'
        }
    });
});